﻿using System;
using System.Windows.Forms;

namespace PPIDesktopClient
{
    public class TreeNodeEx : TreeNode
    {
        #region Private Members
        private string m_Value;
        #endregion Private Members
        #region Public Properties
        //
        // Summary:
        //     Gets or sets the value of the tree node.
        //
        // Returns:
        //     A System.String that represents the value of the tree node.
        public string Value 
        {
            get { return m_Value; }
            set { m_Value = value; }
        }
        #endregion Public Properties
        #region Constructors
        //
        // Summary:
        //     Initializes a new instance of the System.Windows.Forms.TreeNodeEx class with
        //     the specified label text and child tree nodes.
        //
        // Parameters:
        //   text:
        //     The label System.Windows.Forms.TreeNode.Text of the new tree node.
        //
        //   children:
        //     An array of child System.Windows.Forms.TreeNode objects.
        // Summary:
        //     Initializes a new instance of the System.Windows.Forms.TreeNode class.
        public TreeNodeEx()
            : base()
        {
        }
        //
        // Summary:
        //     Initializes a new instance of the System.Windows.Forms.TreeNode class with
        //     the specified label text.
        //
        // Parameters:
        //   text:
        //     The label System.Windows.Forms.TreeNode.Text of the new tree node.
        public TreeNodeEx(string text)
            : base(text)
        {
        }
        public TreeNodeEx(string text, TreeNode[] children)
            : base(text, children)
        {
        }
        //
        // Summary:
        //     Initializes a new instance of the System.Windows.Forms.TreeNodeEx class with
        //     the specified value, label text and child tree nodes.
        //
        // Parameters:
        //   text:
        //     The label System.Windows.Forms.TreeNode.Text of the new tree node.
        //
        //   value:
        //     The label System.Windows.Forms.TreeNodeEx.Value of the new tree node.
        //
        //   children:
        //     An array of child System.Windows.Forms.TreeNode objects.
        public TreeNodeEx(string value, string text, TreeNode[] children)
            : base(text, children)
        {
            m_Value = value;
        }
        #endregion Constructors
    }
}
